<legend><?php echo $this->translate('Personal information');?></legend>

<div class="field">
    <label for="field_20"><?php echo $this->translate('Registered with email');?></label>
    <input type="text" name="email" id="field_20" class="textbox" value="<?php echo $personal['email'] ?>" disabled/>
    <p class="field-help">
        <?php echo $this->translate('Email can\'t be changed');?>
    </p>
</div>


<div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
    <label for="field_21"><?php echo $this->translate('Name');?></label>
    <input type="text" name="email" id="field_21" class="textbox" value="<?php echo $this->escapeHTML($personal['name']) ?>"/>
    <p class="field-help">
        <?php if(array_key_exists('email', $formMessages)) {
            foreach ($formMessages['email'] as $key => $val) {
                echo $key . " ";
            }
        }elseif (!empty($message)) {
            echo $message;
        } else { echo $this->translate('You can provide name or nickname but it is optional');}
        ?>
    </p>
</div>


<div class="field <?php if(array_key_exists('email', $formMessages) || !empty($message)) {echo 'field-error';} ?>">
    <label for="field_22"><?php echo $this->translate('Surname');?></label>
    <input type="text" name="email" id="field_22" class="textbox" value="<?php echo $this->escapeHTML($personal['surname']) ?>"/>
    <p class="field-help">
        <?php if(array_key_exists('email', $formMessages)) {
            foreach ($formMessages['email'] as $key => $val) {
                echo $key . " ";
            }
        }elseif (!empty($message)) {
            echo $message;
        } else { echo $this->translate('Surname would nicely complete your name');}
        ?>
    </p>
</div>
